<?php
    $session = Session::getInstance();
?>
<div class="art-layout-cell art-sidebar1">
    <div class="art-vmenublock">
        <div class="art-vmenublock-tl"></div>
        <div class="art-vmenublock-tr"></div>
        <div class="art-vmenublock-bl"></div>
        <div class="art-vmenublock-br"></div>
        <div class="art-vmenublock-tc"></div>
        <div class="art-vmenublock-bc"></div>
        <div class="art-vmenublock-cl"></div>
        <div class="art-vmenublock-cr"></div>
        <div class="art-vmenublock-cc"></div>
        <div class="art-vmenublock-body">
            <div class="art-vmenublockcontent">
                <div class="art-vmenublockcontent-body">
                    <!-- block-content -->
                    <ul class="art-vmenu">
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>"><span class="l"></span><span class="r"></span><span
                                class="t">Home</span></a>
                        </li>
                        <?php
                            if($session->get('permission') == 2 )
                            {
                                ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/managequestions"><span class="l"></span><span class="r"></span><span
                                class="t">Quản lí câu hỏi</span></a>
                        </li>
                                <?php
                            }
                        ?>
                        <?php
                            if($session->get('permission') == 1 )
                        {
                        ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/sections"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Quản lí chương</span></a>
                        </li>
                        <?php
                            }
                        ?>
                        <?php
                            if($session->get('permission') == 1 )
                        {
                        ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/buildexamstruct"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Xây dựng cấu trúc đề</span></a>
                        </li>
                        <?php
                            }
                        ?>
                        <?php
                            if($session->get('permission') == 1 )
                        {
                        ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/makeexam"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Tạo đề</span></a>
                        </li>
                        <?php
                            }
                        ?>
                        <?php
                            if($session->get('permission') == 3 )
                        {
                        ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/testing"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Làm bài thi</span></a>
                        </li>
                        <?php
                            }
                        ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/result"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Kết quả</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/user"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Thông tin cá nhân</span>
                            </a>
                        </li>
                        <?php
                            if($session->get('permission') == 1 )
                        {
                        ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/user/find"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Tìm kiếm người dùng</span></a>
                        </li>
                        <?php
                            }
                        ?>
                        <li>
                            <a href="<?php echo Utility::getSiteUrl();?>/logout"><span class="l"></span><span
                                class="r"></span><span
                                class="t">Thoát khỏi hệ thống</span>
                            </a>
                        </li>
                    </ul>
                    <!-- /block-content -->

                    <div class="cleared"></div>
                </div>
            </div>
            <div class="cleared"></div>
        </div>
        </div>

</div>